]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
magnifier: Use all color channels to paint content texture node
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 11 Mar 2019 20:39:29 +0000 (20:39 +0000)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 1 Apr 2019 20:13:50 +0000 (22:13 +0200)
In order to paint all the color channels of the content texture we need to
set the color channels to 255, so instead of doing this manually we can just
reuse the static color definition for white.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1020

js/ui/magnifier.js

index 4a21b71e5c14563a19f1b0f92935ac41b554ffe2..3d05615eecbdbe134e0b2af5e4d2fe86eeaf1764 100644 (file)
@@ -65,7 +65,7 @@ var MouseSpriteContent = GObject.registerClass({
         if (!this._texture)
             return;
 
-        let color = new Clutter.Color();
+        let color = Clutter.Color.get_static(Clutter.StaticColor.WHITE);
         let textureNode = new Clutter.TextureNode(this._texture,
                                                   color,
                                                   Clutter.ScalingFilter.NEAREST,